package com.wangjialu.learner.payment.dao;

import com.wangjialu.learner.payment.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p></p>
 *
 * @author WangJialu
 * @since 2021/6/22 4:24
 */
@Mapper
public interface PaymentDao {

    Payment queryById(@Param("id") Long id);

    List<Payment> queryAllByLimit(@Param("offset")Integer offset,@Param("limit")Integer limit);

    List<Payment> queryAll(Payment payment);

    int insert(Payment payment);

    int update(Payment payment);

    int deleteById(@Param("id") Long id);
}
